package com.wsc.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("f_order")
public class FOrder {
  @TableId
  private long id;
  @TableField("f_user")
  private Integer fUser;
  private long parcelid;
  private java.sql.Date time;
  private double price;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date date;
  @TableField("f_site")
  private Integer fSite;
  @TableField("state")
  private Integer state;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date datetime;
  @TableField("out_trade_no")
  private String outTradeNo;
  @TableField(exist = false)
  private List<FOrderp> fOrderps;
}
